package com.top10.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.top10.entity.Banner;
import com.top10.mapper.BannerMapper;
import com.top10.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;

  @Override
  public List<Banner> getBanner(String shop_uuid)throws Exception{
     return bannerMapper.selectList(new EntityWrapper<Banner>().eq("shop_uuid",shop_uuid).eq("isdeleted",false));
  }
}
